package com.trxy.hotelsystem.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.trxy.hotelsystem.dao.clientInfMapper;
import com.trxy.hotelsystem.model.clientInf;
import com.trxy.hotelsystem.service.VipService;


@Service
public class VipServiceImpl implements VipService{
	
	@Autowired
	private clientInfMapper clientInfmapper;

	@Override
	public List<clientInf> queryVipAll() {
		// TODO Auto-generated method stub
		return clientInfmapper.queryVipAll();
	}

	@Override
	public int insertVip(clientInf client) {
		// TODO Auto-generated method stub
		return clientInfmapper.insertVip(client);
	}

	@Override
	public List<clientInf> selectVipBynumber(String number) {
		// TODO Auto-generated method stub
		return clientInfmapper.selectVipBynumber(number);
	}

	@Override
	public int updateByPrimaryKeySelective(clientInf record) {
		// TODO Auto-generated method stub
		return clientInfmapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<clientInf> selectVipByother(clientInf record) {
		// TODO Auto-generated method stub
		return clientInfmapper.selectVipByother(record);
	}

	@Override
	public int deleteVip(String id) {
		// TODO Auto-generated method stub
		return clientInfmapper.deleteVip(id);
	}

	@Override
	public int updeVipselect(clientInf record) {
		// TODO Auto-generated method stub
		return clientInfmapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public clientInf selectVipBynumber2(String number) {
		// TODO Auto-generated method stub
		return clientInfmapper.selectVipBynumber2(number);
	}
}
